﻿using System;
using System.Web.UI.WebControls;

namespace MONTRASEC_test.ControlsEUMonitoringCentre
{
  public partial class wucDGANewEntryEU : System.Web.UI.UserControl
  {
    public Object SelectedValue
    {
      get { return gvANewEntry.SelectedValue; }
    }

    public GridView gv
    {
      get
      {
        return gvANewEntry;
      }
    }
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void gvANewEntry_SelectedIndexChanged(object sender, EventArgs e)
    {
      Session["CurrentANewEntryID"] = this.gvANewEntry.SelectedValue; //dvANewEntry.DataKey.Value

      // notify the subscribers
      onSelectedIndexChanged(e);
    }

    // the delegate
    public delegate void SelectedIndexChangedHandler(object sender, EventArgs e);

    // an instance of the delegate
    public event SelectedIndexChangedHandler SelectedIndexChanged;

    protected virtual void onSelectedIndexChanged(EventArgs e)
    {
      if (SelectedIndexChanged != null)
      {
        SelectedIndexChanged(this, e);
      }
    }


  }
}